package idv.arthur.Date;

import java.text.SimpleDateFormat;
import java.util.Date;

public class D01 {

	public static void main(String[] args) {
		Date now = new Date();
		SimpleDateFormat formatter = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
		String dateStr = (now.getYear()+1900) + "/"+ (now.getMonth()+1) + "/" +now.getDate()+ " " + now.getHours()+":"+now.getMinutes()+":"+now.getSeconds();
		
		System.out.println(now.getHours());
		System.out.println( formatter.format(now) );
		System.out.println(now.getYear()+1900);
		System.out.println(now.getMonth()+1);
		System.out.println(now.getDate());
		System.out.println(now.getHours());
		System.out.println(now.getMinutes());
		System.out.println(now.getSeconds());
		formatter = new SimpleDateFormat("yyyyMMdd_");
		System.out.println(formatter.format(new Date()));
		
	}

}
